﻿using System;
using System.Collections.Generic;
using System.Text;

using System.Runtime.InteropServices;

namespace siguo_shrx.server
{
    public class NetApi
    {
        //ini文件操作
        [DllImport("kernel32")]
        public static extern long WritePrivateProfileString(
            string section,
            string key,
            string val,
            string filePath
        );

        //客户端用到
        [DllImport("kernel32")]
        public static extern int GetPrivateProfileString(
            string section,
            string key,
            string def,
            StringBuilder retVal,
            int size,
            string filePath
        );
    }
}
